home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh -v
- ## A dangerous shell script to undo Dialup IP kernel modifications.
-
- cp /sys/conf/files.pre-dip /sys/conf/files
- rm -rf /sys/DIALUP
- rm -f /sys/conf/DIALUP
-
- if [ -d /sys/vax ] ; then
- cp /sys/vax/conf.c.pre-dip /sys/vax/conf.c
- fi
- if [ -d /sys/sun ] ; then
- cp /sys/sun/conf.c.pre-dip /sys/sun/conf.c
- fi
-
- rm -f /dev/dialup0
-
- if [ -f /sys/data/tty_conf_data.c ] ; then
- mv /sys/data/tty_conf_data.c.pre-dip /sys/data/tty_conf_data.c
- fi
- if [ -f /sys/sys/tty_conf.c ] ; then
- mv /sys/sys/tty_conf.c.pre-dip /sys/sys/tty_conf.c
- fi
-
- mv /sys/h/ioctl.h.pre-dip /sys/h/ioctl.h
- if [ -f /usr/include/sys/ioctl.h.pre-dip ] ; then
- mv /usr/include/sys/ioctl.h.pre-dip /usr/include/sys/ioctl.h
- fi
-
- rm -f /sys/sys/dialup.c /sys/net/dialup.c
- rm -f /sys/net/if_du.[ch] /usr/include/net/if_du.h
-
- if [ -f /vmunix.pre-dip ] ; then
- mv /vmunix.pre-dip /vmunix
- fi
-
- echo All changed files backed out. Reboot.
-